layui.use(['form', 'jquery', 'layer', 'table', 'laypage'], function() {
	var form = layui.form;
	var $ = layui.$;
	var table = layui.table;
	var layer = layui.layer;
	var laypage = layui.laypage;
	form.render();
	var lay_filter = 'tpl_sale' + goods_sign;
	if(sale_form_value.sale_price == 'on'){
		sale_form_value.sale_price = true;
	} else {
		sale_form_value.sale_price = false;
	}
	// 赋值
	form.val(lay_filter, sale_form_value);
	// 监听提交
	form.on('submit(submit_sale)', function(data) {
		var field = data.field;
		parent.create_sale_html(field,goods_sign,sale_form_value);
		parent.layer.closeAll('iframe');
		return false;
	});
})